package com.lonwin.mes2u8.common;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 配置的用友相关信息
 * @author DELL
 * @Date 2023-12-13 11:52
 */
@Component
@Data
public class YonYouConfig {
    // 调用方id
    @Value("${u8conf.to_account}")
    private String toAccount;

    // 服务方id
    @Value("${u8conf.from_account}")
    private String fromAccount;

    // 应用编码
    @Value("${u8conf.app_key}")
    private String appKey;

    // 应用秘钥
    @Value("${u8conf.app_secret}")
    private String appSecret;

    @Value("${u8conf.address}")
    private String address;

    @Value("${u8conf.material_out_get_url}")
    private String materialOutGetUrl;

    @Value("${u8conf.material_out_batch_get_url}")
    private String materialOutBatchGetUrl;

    @Value("${u8conf.material_out_add_url}")
    private String materialOutAddUrl;

    @Value("${u8conf.production_get_url}")
    private String productionGetUrl;

    @Value("${u8conf.production_batch_get_url}")
    private String productionBatchGetUrl;

    @Value("${u8conf.production_add_url}")
    private String productionAddUrl;
}
